package com.xiaoq.shop.service;

import com.xiaoq.shop.entity.SimpleLock;

/**
 * Created by chenjh on 2017/12/1.
 */
public interface ISimpleLockService {

    boolean save(SimpleLock simpleLock);

    /**
     * 锁定targetId
     * @param targetId targetId
     * @return
     */
    boolean lock(String targetId);

    /**
     * 释放targetId
     * @param targetId
     * @return
     */
    boolean releaseLock(String targetId);

}
